<@_categoryList parentId=categoryId pageIndex=pageNum count=numPerPage>
<form id="pagerForm" onsubmit="return navTabSearch(this);" method="post">
		<#include "../include_page/paramters.html"/>
</form>
<@_sysAuthorized roleIds=admin.roles urls='cmsCategory/add,cmsCategory/delete,cmsCategory/publish,cmsCategory/static,cmsCategory/moveParameters,cmsCategory/publishParameters'><#assign authorizedMap=map/></@_sysAuthorized>
<div class="pageContent">
	<div class="panelBar">
		<ul class="toolBar">
<#if authorizedMap['cmsCategory/add']>
			<li><a class="add" href="cmsCategory/add.html?parentId=${categoryId!}" target="navTab" rel="cmsCategory/add"><span>添加分类</span></a></li>
	<@_categoryTypeList count=5>
		<#list page.list as a>
			<li><a class="add" href="cmsCategory/add.html?parentId=${categoryId!}&typeId=${a.id}" target="navTab" rel="cmsCategory/add"><span>添加${(a.name)!}分类</span></a></li>
		</#list>
		<#if page.totalCount gt 5>
			<li><a class="icon" href="cmsCategory/addMore.html?parentId=${categoryId!}" target="dialog" mask="true"><span>添加更多分类</span></a></li>
		</#if>
	</@_categoryTypeList>
</#if>
			<li><a class="edit" href="cmsCategory/add.html?id={sid}" target="navTab" rel="cmsCategory/edit" title="修改分类"><span>修改</span></a></li>
		<#if authorizedMap['cmsCategory/delete']>
			<li><a class="delete" href="cmsCategory/delete.do" title="确定要删除该些记录吗?" target="selectedTodo" rel="ids"><span>批量删除</span></a></li>
			<li class="line">line</li>
		</#if>
		<#if authorizedMap['cmsCategory/publish']>
			<li><a class="icon" href="cmsCategory/publish.do" title="确定要生成该些记录吗?" target="selectedTodo" rel="ids"><span>批量生成分类首页</span></a></li>
		</#if>
		<#if authorizedMap['cmsCategory/moveParameters']>
			<a href="cmsCategory/moveParameters.html" target="dialog" mask="true">批量移动</a>
		</#if>
		</ul>
	</div>
	<table class="list" width="100%" layoutH="57">
		<thead>
			<tr>
				<th width="20"><input type="checkbox" group="ids" class="checkboxCtrl"></th>
				<th width="30">ID</th>
				<th>名称</th>
				<th>英文名</th>
				<th>路径</th>
				<th>内容路径</th>
				<th>每页数据</th>
				<th>内容数</th>
				<th>排序</th>
				<th>操作</th>
			</tr>
		</thead>
		<tbody>
			<#list page.list as a>
			<tr target="sid" rel="${a.id}">
				<td><input name="ids" value="${a.id}" type="checkbox"></td>
				<td>${a.id!}</td>
				<td><a href="<@_sitePath path=a.url hasStatic=a.hasStatic/>" target="_blank">${a.name!}${(a.disabled?then("[已删除]",''))!}</a></td>
				<td>${a.englishName!}</td>
				<td>${a.path!}</td>
				<td>${a.contentPath!}</td>
				<td>${a.pageSize!}</td>
				<td>${a.contents!}</td>
				<td>${a.sort!}</td>
				<td>
				<#if authorizedMap['cmsCategory/publishParameters']>
					<a href="cmsCategory/publishParameters.html?id=${a.id}&pageSize=${a.pageSize}" target="dialog" mask="true">生成</a>
				</#if>
				</td>
			</tr>
			</#list>
		</tbody>
	</table>
	<#include "../include_page/page.html"/>
</div>
</@_categoryList>